<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Userprofile extends CI_Controller {

	public function index()
	{	
		 //Userprofile page
		 $this->load->model('transaction');
		 if(isset($_COOKIE['fb_mobtel'])) $mobtel = $_COOKIE['fb_mobtel'];
		 $mobtel = ($mobtel!="") ? urldecode($mobtel) : "";
		 $userProfile = $this->transaction->retrieveUserProfileToDB($mobtel);
		 $d['userinfo'] = $userProfile;		 
		 $views['_content'] = "userprofile";
		 $this->template->load('template_landing', $views, $d);
	}	
	
}
